package com.smxy.daydayup.util.osa;

import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: yusy
 * @Date: 2022/8/11
 */
public interface OSAProvider {

    class CustomeInfo {
        public final String bucket;
        public final String path;

        public CustomeInfo(String argbucket, String argpath) {

            this.bucket = argbucket == null ? "" : argbucket.trim();
            this.path = argpath == null ? "" : argpath.trim();
        }


    }

    ObjectStorageInfo upload(MultipartFile image, CustomeInfo customeInfo);

}
